package com.github.m6d21.sso.dao.role.dao;

import com.github.m6d21.sso.model.role.dto.RolePermissionDTO;
import com.github.m6d21.sso.model.role.qo.RolePermissionQO;
import com.github.m6d21.sso.model.role.vo.UnionRole;
import java.util.List;

/**
 *<p>
 *IRoleDao
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:26:30
 * @since 1.0.0
 */
public interface IUnionRoleDao {

    List<UnionRole> unionQuery(RolePermissionQO rolePermissionQO);

    Boolean insertRolePermissionRelation(RolePermissionDTO rolePermissionDTO);

    int insertBatchRolePermissionRelation(List<RolePermissionDTO> rolePermissionDTOList);

    int deleteBatchRolePermissionRelation(Integer roleId, List<Integer> permissionIds);
}
